package bluerain.io.activity.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import bluerain.io.activity.R;
import bluerain.io.activity.entries.Person;

/**
 * Created by foredawn on 15-9-12.
 * 取出数据并且显示的Activity
 */
public class RegisterSuccessActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.register_success_activity);

        //获得intent并取出intent中Bundle数据
        Intent intent = getIntent();
        Person p = (Person) intent.getSerializableExtra("person");
        ((TextView) findViewById(R.id.result)).setText(p.toString());
    }
}
